﻿<%@ WebHandler Language="C#" Class="md5" %>

using System;
using System.Web;
using Tools;
public class md5 : IHttpHandler {

    public void ProcessRequest (HttpContext context) {

        string str = string.Empty;

        str = string.Format("{0}", context.Request["str"]);

        HashEncrypt h = new HashEncrypt(true,true);

        context.Response.ContentType = "text/plain";

        context.Response.Write(h.MD5Encrypt(str));
    }

    public bool IsReusable {
        get {
            return false;
        }
    }

}